package icu.sehnen.controller;


import icu.sehnen.common.CommonResult;
import icu.sehnen.entity.Customer;
import icu.sehnen.service.CustomerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "顾客名单管理")
@RestController
public class CustomerController {

    @Autowired
    CustomerService customerService;
  @RequestMapping("/test")
  @ApiOperation("顾客名单列表")
  //@ApiImplicitParam(name = "ids", value = "多个律师id", paramType="form", required = true, dataType = "String")
    public CommonResult findAll(){
     List<Customer> customerList =customerService.findAll();
    return  CommonResult.success(customerList);
    }
}
